package com.bruce.starts.demo.commonerror.apidesign;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author luotuan
 * @Description
 * @create 2021-05-13 15:37
 **/
@Slf4j
@RestController
@RequestMapping("apiversion")
public class APIVersionController {
    @GetMapping(value = "/api/user")
    @APIVersion("v4")
    public int right4() {
        return 4;
    }
}
